package com.larrylague.template.event
{
	import flash.events.Event;
	
	public class CustomEvent extends Event
	{
		public static const CHANGE:String = "change";
		public static const LOADED:String = "loaded";
		public static const UNLOADED:String = "unloaded";
		public static const KILL_TIMER:String = "killTimer";
		public static const START_TIMER:String = "startTimer";
		
		private var _extra:Object;
		
		public function CustomEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, extra:Object = null)
		{
			super(type, bubbles, cancelable);
			_extra = extra;
		}
		
		override public function clone() : Event
		{
			return new CustomEvent(type, bubbles, cancelable, _extra);
		}
	}
}